#define _CRT_SECURE_NO_WARNINGS
#include"list.h"
void test01()
{
	/*ListNode* head = NULL;
	ListInit(&head);*/
	ListNode* head = ListInit(-1);
	ListPushBack(head, 3);
	ListPushBack(head, 4);
	ListPushBack(head, 6);
	ListPushBack(head, 7);
	ListPushBack(head, 9);
	ListPushFront(head, 2);

	/*ListPopBack(head);
	ListPopFront(head);*/
	ListNode* pos = ListCheckNode(head, 4);
	ListInsertBack(pos, 5);
	pos = ListCheckNode(head, 9);
	ListInsertFront(pos, 8);
	//ListErase(pos);
	ListEraseFront(pos);
	ListPushBack(head, 10);
	ListEraseBack(pos);
	ListDestory(head);
	head = NULL;
}
int main()
{
	test01();
	return 0;
}